<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>for语句的特殊用法</title>
	<script>
		//变量的初始值
		var n = 1;
		for(;;){
			console.log(n);	
			//循环条件		
			if(n>=5){
				break;
			}
			//计算步长
			n++;
		}
	</script>
</head>
<body>
	
</body>
</html>